﻿using System.Windows;
using Caliburn.Micro;
using SverigesRadio.SverigesRadioApp.Business;

namespace SverigesRadio.SverigesRadioApp.WindowsPhoneApplication.ViewModels
{
    public abstract class NavigatableViewModelBase : Screen
    {
        public INavigationService NavigationService { get; private set; }
        public IDataContext DataContext { get; private set; }

        protected NavigatableViewModelBase(INavigationService navigationService, IDataContext dataContext)
        {
            NavigationService = navigationService;
            DataContext = dataContext;
        }

        private bool isBusy;
        public bool IsBusy
        {
            get { return isBusy; }
            set
            {
                isBusy = value;

                NotifyOfPropertyChange(() => IsBusy);
            }
        }


        public Visibility DarkThemeVisibility
        {
            get { return DataContext.DarkThemeVisibility; }
        }

    }
}